﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using WebAPITest.Models.Database;

namespace WebAPITest.Service
{
    public interface IUserService
    {
        /// <summary>
        /// 根据用户名获取用户
        /// </summary>
        /// <returns></returns>
        User GetUserByUserName(string userName);
        /// <summary>
        /// 根据用户名判断用户是否存在
        /// </summary>
        /// <param name="userName"></param>
        /// <returns></returns>
        bool ExistUserByUserName(string userName);
        /// <summary>
        /// 添加一个新用户
        /// </summary>
        int AddNewUser(string username, string email, string nickname, string password);
    }
}
